package com.sun.lotter;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

public class TabPage1 extends Activity{
	@Override
	public void onCreate(Bundle bundle){
		super.onCreate(bundle);
		LinearLayout mainLayout = new LinearLayout(this);
		mainLayout.setOrientation(LinearLayout.VERTICAL);
		TextView textView = new TextView(this);
		textView.setText(getIntent().getStringExtra("content"));
		Button button = new Button(this);
		
		mainLayout.addView(textView);
		mainLayout.addView(button);
		this.setContentView(mainLayout);
	}
	public static Intent createPageIntent(Context context,String content){
		
		return new Intent(context,TabPage1.class).putExtra("content", content);
	}
}
